package com.asen.commons.core.base.enums;

import com.asen.commons.core.base.StringEnum;
import io.swagger.annotations.ApiModel;

/**
 * 操作类型枚举
 *
 * @author Gary
 * @version 1.0
 * @date 2019-12-04
 */
@ApiModel("操作类型")
public enum ActionTypeEnum implements StringEnum {

    /**
     * 操作类型
     */
    NONE("none", "无"),

    ALL("all", "所有"),

    ADD("add", "新增"),

    UPDATE("update", "更新"),

    REMOVE("remove", "删除"),

    SUBMIT("submit", "提交"),

    AUDIT("audit", "审核"),

    UN_AUDIT("unAudit", "反审核"),

    FINISH("finish", "完结"),

    UN_FINISH("unFinish", "取消完结"),

    ENABLE("enable", "启用"),

    DISABLE("disable", "禁用"),

    CLEARANCE("clearance", "放行"),

    UN_CLEARANCE("un_clearance", "取消放行"),

    ACCEPT("accept", "受理"),

    REJECT("reject", "驳回"),

    DEL_UN_AUDIT("DEL_UN_AUDIT", "删除和反审核");

    private String value;

    private String desc;

    private ActionTypeEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }

}
